<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="myauctioneer.dto.User"
	import="java.util.*" import="myauctioneer.dto.Article"%>
<%@ include file="header.jsp"%>
<div id="content">
	<h1>My purchases</h1>
	<p>
	<table>
		<tr>
			<th scope="col">id</th>
			<th scope="col">name</th>
			<th scope="col">valid until</th>
			<th scope="col">price</th>
			<th scope="col">sale type</th>
			<th scope="col">&nbsp;</th>
		</tr>
		<%
			for (Article a : (ArrayList<Article>) request.getAttribute("aAL")) {
				out.println("<tr><td>" + a.getArticleId() + "</td><td>"
						+ a.getBrand() + " " + a.getFamilyLine() + " "
						+ a.getModel() + "</td><td>" + a.getValidUntil()
						+ "</td><td>" + a.getPrice() + "</td><td>"
						+ a.getSaleType() + "</td><td><a href=\""
						+ App.getBaseUrl() + "/sales/scoreSeller?id="
						+ a.getArticleId() + "\">score seller</a>&nbsp;|&nbsp;<a href=\""
						+ App.getBaseUrl() + "/sales/scoreArticle?id="
						+ a.getArticleId() + "\">score article</a></td>");
			}
		%>
	</table>
	</p>
</div>
<%@ include file="footer.jsp"%>
